wayland: Set a more believable crossing detail on pointer enter/leave
authorCarlos Garnacho <carlosg@gnome.org>
Fri, 9 Oct 2015 14:14:31 +0000 (16:14 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 13 Oct 2015 00:07:23 +0000 (02:07 +0200)
commit7ab250c10cc84de5474066c6be6706f6f87f1b53
treeba4765ad48dce98eb139cb0dd875097618552947
parentc05dc28952aa8ae2fb954ebf1fffc1100d8a6057
wayland: Set a more believable crossing detail on pointer enter/leave

GDK_NOTIFY_ANCESTOR would happen when the pointer crosses across a direct
parent/child. However nonlinear events are more likely, specially when
the pointer moves across toplevels (either different apps, or menus being
popped up over the pointer position).

This makes popping up comboboxes and other menus that fall over the pointer
position possible. With the previous detail the GtkMenu code misinterpreted
the crossing event, making it think the button release coming right after
should dismiss the popup, which made menus just flash on the screen unless
you kept the button pressed.
gdk/wayland/gdkdevice-wayland.c